package com.jackchong.utils;

import android.app.Activity;
import android.view.View;

import com.chad.library.adapter.base.BaseMultiItemQuickAdapter;
import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * autho  : jack(黄冲)
 * e-mail : 907755845@qq.com
 * create : 2019/3/16
 * desc   : 多Item适配器
 */
public abstract class JRMoreAdapter<T extends MultiItemEntity> extends BaseMultiItemQuickAdapter<T, JRAdapter.ViewHolder> {

    protected Activity mActivity;

    public JRMoreAdapter( ) {
        super(null);
    }

    @Override
    protected JRAdapter.ViewHolder createBaseViewHolder(View view) {
        JAuto.auto(view);
        mActivity = (Activity) view.getContext();
        return super.createBaseViewHolder(view);
    }
}
